package com.coldchain.admin.config.api;


import com.coldchain.admin.config.entity.FeeScale;
import com.coldchain.admin.config.service.IFeeScaleService;
import com.coldchain.common.msg.ObjectRestResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 不同地区各车型收费表 前端控制器
 * </p>
 *
 * @author fangliai
 * @since 2018-10-25
 */
@RestController
@RequestMapping("/config/feeScale")
public class FeeScaleController {

    @Autowired
    private IFeeScaleService feeScaleService;


    @RequestMapping("/edit")
    public Object edit(List<FeeScale> feeScale){
        feeScaleService.saveBatch(feeScale);
        return  new ObjectRestResponse<String>().succeed();
    }






}

